<?php

include_once($mcrp . '/functions/categories.php');
include_once($mcrp . '/functions/users.php');
include_once($mcrp . '/functions/cache.php');

?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
	<title><?php echo $SkinTitle; ?></title>
    <link href="<?php echo MC_ROOT . $SkinStyleCss; ?>" rel="stylesheet" media="screen" type="text/css" title="style" />
	<?php if($mcuser->isadmin) { ?>
		<link href="<?php echo MC_ROOT . 'skin/admin.css'; ?>" rel="stylesheet" media="screen" type="text/css" title="style" />
		<script type="text/javascript" src="<?php echo MC_ROOT . 'admin/messages.js' ?>"></script>
	<?php } ?>
	<link rel="shortcut icon" type="image/x-icon" href="favicon.ico" />
	<link rel="icon" type="image/png" href="favicon.ico" />
	
	<script type="text/javascript" src="<?php echo MC_ROOT . 'scripts/shCore.js' ?>"></script>
	<script type="text/javascript" src="<?php echo MC_ROOT . 'scripts/shBrushCpp.js' ?>"></script>
	<script type="text/javascript" src="<?php echo MC_ROOT . 'scripts/hash.js' ?>"></script>
	<link type="text/css" rel="stylesheet" href="<?php echo MC_ROOT . 'styles/shCoreMicrocontest.css' ?>"/>
	<script type="text/javascript">SyntaxHighlighter.all();</script>
	<script type="text/javascript">
		var jMC_ROOT = "<?php echo MC_ROOT; ?>";
		var user = "<?php echo $mcuser->name; ?>";
	</script>
	<?php if(isset($head)) echo $head; ?>
	<!--<script type="text/javascript">
		var _gaq = _gaq || [];
		_gaq.push(['_setAccount', 'UA-22916389-1']);
		_gaq.push(['_trackPageview']);
		(function() {
		var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
		ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
		var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
		})();
	</script>-->